import java.util.Scanner;

public class DoUser {
    public static User add () {
        UserService us = new UserService();
        User u1 = new User();
        try {
            u1 = us.register();
        } catch (MyException e) {
            //e.printStackTrace();
            e.getMessage();
            System.exit(-1);
        }
        System.out.println(u1.toString());
        return u1;
    }
}
